package com.example.demo.domain.repository;

import com.example.demo.api.dto.EmployeeDTO;
import com.example.demo.domain.entity.Employee;

import java.util.List;

public interface EmployeeRepository {
    /**
     * 一对一查询：查询员工及其部门
     * @param employeeDTO
     * @return
     */
    List<Employee> findEmployeeByCondition(EmployeeDTO employeeDTO);
    Employee findEmployeeById(Long employeeId);
    Integer countEmployeeLen();
    Integer insertEmployee(EmployeeDTO employeeDTO);
    Integer removeEmployee(Long employeeId);
    Integer updateEmployee(EmployeeDTO employeeDTO);

}
